package com.credithc.signature.lanmaostorage.controller;

import com.credithc.baseserv.core.message.Message;
import com.credithc.baseserv.core.message.MessageFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhanghanqiu181212@credithc.com
 * @Date 2020/6/11 15:22
 */
@RestController
@RequestMapping("/api/scs/v2/storage/health")
public class HealthController {
    @Autowired
    MessageFactory messageFactory;


    @GetMapping("/hi")
    public Message health(){
        return messageFactory.getInstance(0,"hello");
    }
}
